/*
 * refactor.c
 *
 *  Created on: Nov 6, 2016
 *      Author: root
 */

#include "common.h"

// {dump code to {"newcode.fn"}}
void dumpcode(Statement *st) {
	//todo
	//printf("todo dumpcode ...");
}

/*
void dumpcode(Statement *st) {
	char *fileName = get_file_from_statement(st);

	Queue *mappings;
	for (Mapping m : mappings) {
		String func = m->sourceFunc;
		if (func contains "::") {
			String className = func.split("::")[0];
			String methodName = func.split("::")[1];
			put map (className, methodName + source);
		}
	}

	for (className name : map) {
		get properties of name;
		get methods from map;
		write_log_file(fileName, FILE_MAX_SIZE, buffer, strlen(buffer));
	}
}
*/

// {dump class {""} to {"newcode.fn"}}
void dumpclass(Statement *st1, Statement *st2) {
	//todo
	//printf("todo dumpclass ...");
}

//dumphierarchy
void dumphierarchy(Statement *st) {
	//todo
	//printf("todo dumphierarchy ...");
}
